package validator

import 	"gopkg.in/go-playground/validator.v9"

type rule map[string]*definit

type definit struct {
	verify func(fl validator.FieldLevel) bool
	message string
}

func newDefinit(verify func(fl validator.FieldLevel) bool, message string) *definit {
	return &definit{
		verify:verify,
		message:message,
	}
}